﻿using PureMVC.Interfaces;
using PureMVC.Patterns;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class HitStartCommand : SimpleCommand {

    public override void Execute(INotification notification)
    {
        StartProxy start=new StartProxy();
        Facade.RegisterProxy(start);

        HitProxy hitproxy = new HitProxy();
        Facade.RegisterProxy(hitproxy);

        MainUI mainUI=notification.Body as MainUI;

        Facade.RegisterCommand(HitSystemEvent.StartCommand, typeof(StartCommand));
        Facade.RegisterCommand(HitSystemEvent.HitCommand, typeof(HitCommand));

        Facade.RegisterMediator(new StartMediator(mainUI.startView));
        Facade.RegisterMediator(new HitMediator(mainUI.hitView));

    }
}
